export interface ResponseData {
  code: number;
  message: string;
  ok: boolean;
}
// sku平台属性收集
export interface Attr {
  attrId: number | string; //平台属性的ID
  valueId: number | string; //属性值的ID
}
// su销售属性
export interface saleArr {
  saleAttrId: number | string; //属性ID
  saleAttrValueId: number | string; //属性值的ID
}
// sku 返回数据
export interface SkuData {
  category3Id: string | number; //三级分类的ID
  spuId: string | number; //已有的SPU的ID
  tmId: string | number; //SPU品牌的ID
  skuName: string; //sku名字
  price: string | number; //sku价格
  weight: string | number; //sku重量
  skuDesc: string; //sku的描述
  skuAttrValueList?: Attr[];
  skuSaleAttrValueList?: saleArr[];
  skuDefaultImg: string; //sku图片地址
  isSale?: number; //控制商品的上架与下架
  id?: number;
}
export interface SkuResponseData extends ResponseData {
  data: {
    records: SkuData[];
    total: number;
  };
}
